package com.jinlei.crm.commons.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("settings")
public class SettingsIndexController {
    // settings 下主页跳转
    @GetMapping("/index")
    public String jumpSettingsIndex(){
        return "settings/index";
    }

    // ==================================dictionary 跳转==============================================
    @GetMapping("/dictionary/index")
    public String jumpSettingsDictionaryIndex(){
        return "settings/dictionary/index";
    }
    @GetMapping("/dictionary/type/index")
    public String jumpSettingsDictionaryTypeIndex(){
        return "settings/dictionary/type/index";
    }
    @GetMapping("/dictionary/type/save")
    public String jumpSettingsDictionaryTypeSave(){
        return "settings/dictionary/type/save";
    }
    @GetMapping("/dictionary/type/edit")
    public String jumpSettingsDictionaryTypeEdit(){
        return "settings/dictionary/type/edit";
    }
    @GetMapping("/dictionary/value/index")
    public String jumpSettingsDictionaryValueIndex(){
        return "settings/dictionary/value/index";
    }
    @GetMapping("/dictionary/value/save")
    public String jumpSettingsDictionaryValueSave(){
        return "settings/dictionary/value/save";
    }
    @GetMapping("/dictionary/value/edit")
    public String jumpSettingsDictionaryValueEdit(){
        return "settings/dictionary/value/edit";
    }
    // =============================================================================================




    // ==================================QX跳转==============================================
    @GetMapping("/qx/index")
    public String jumpSettingsQxIndex(){
        return "settings/qx/index";
    }

    @GetMapping("/qx/permission/index")
    public String jumpSettingsQxPermissionIndex(){
        return "settings/qx/permission/index";
    }

    @GetMapping("/qx/role/index")
    public String jumpSettingsQxRoleIndex(){
        return "settings/qx/role/index";
    }
    @GetMapping("/qx/role/detail")
    public String jumpSettingsQxRoleDetail(){
        return "settings/qx/role/detail";
    }

    @GetMapping("/qx/user/index")
    public String jumpSettingsQxUserIndex(){
        return "settings/qx/user/index";
    }

    @GetMapping("/qx/user/detail")
    public String jumpSettingsQxUserDetail(){
        return "settings/qx/user/detail";
    }
    // =====================================================================================
}
